package top.fangw.admin.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Param;
import top.fangw.admin.pojo.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import top.fangw.common.api.vo.UserVo;

/**
 * <p>
 * 用途：存储用户信息 Mapper 接口
 * </p>
 *
 * @author fangw
 * @since 2024-02-21
 */
@Mapper
//@DS("master_2")
public interface SysUserMapper extends BaseMapper<SysUser> {

    UserVo selectByUsername(@Param("username") String username);

    UserVo selectByUsernameAndTenantId(@Param("username") String username, @Param("tenantId") String tenantId);
}
